<table class="updCar">
	<tr>
		<td><label>Update car</label>
			<form name="car" action="updateCar" method="post">
			   	 <table id="carId" class="updCar2">
			   			<tr>
							<td>Plate number:</td>
							<td colspan="2"><input type="text" name="numarMatricol" autocomplete="off"/></td>
						</tr>
						<tr>
							<td>Brand:</td>
							<td colspan="2"><input type="text" name="marca" autocomplete="off"/> </td>
						</tr>
						<tr>
							<td>Model:</td>
							<td colspan="2"><input type="text" name="model" autocomplete="off"/></td>
						</tr>
						<tr>
							<td>
								<input id="submitCarBtn" class="yui3-button add-contact-button" type="submit" value="Update car" />
							</td>
						</tr>
					</table>    
				</form>
			</td>
		</tr>
		
<script type="text/javascript">
window.onbeforeunload=function(){
	var ta=document.getElementById("carId");
	
	if (ta.value != "")
	{
		return "Are you sure??"
	}
	

}
</script>
</table>					